package com.example.supplychainbackend.dao.production;

import com.example.supplychainbackend.entity.production.ProductionCertEntity;
import com.example.supplychainbackend.entity.production.ProductionProcessEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ProductionProcessDao extends JpaRepository<ProductionProcessEntity,Long> {
    Optional<ProductionProcessEntity> findByBatch(String batch);
    List<ProductionProcessEntity> findAllByEnterpriseId(String enterpriseId);
}
